$(function () {
    selectAllPersonnel();
})
function selectAllPersonnel() {
    let data = myAjax("/personnel/selectAllPersonnel","","post");
    data = data.list;
    console.log(data);
    let html ='';
    for (let i = 0 ;i<data.length;i++){
        html+='<tr>' +
            '<td>'+data[i].personnelNumber+'</td>\n' +
            '            <td>'+data[i].personnelType+'</td>\n' +
            '            <td>'+data[i].name+'</td>\n' +
            '            <td>'+data[i].sex+'</td>\n' +
            '            <td>'+data[i].age+'</td>\n' +
            '            <td>'+data[i].education+'</td>\n' +
            '            <td>'+data[i].graduateSchool+'</td>\n' +
            '            <td>'+data[i].nativeplace+'</td>\n' +
            '            <td>'+data[i].location+'</td>\n' +
            '            <td>'+data[i].phone+'</td>\n' +
            '            <td>'+data[i].urgentphone+'</td>\n' +
            '            <td><a href="" style="color: #1E9FFF">编辑</a>&nbsp;&nbsp;\n' +
            '                <a href="" style="color: red">删除</a></td>\n'+
            '</tr>'
    }
    $("#personnelManage").html(html);
}
